package ru.agiledev.aos.commons.dto;

/**
 * Created by Anton Kirillov
 * Date: 8/12/11
 */
public class SearchEntry {
    String title;
    String domain;
    String link;  //todo: rename to "url" and refactor usages
    String text;
    String wordStat;
    int aosRank;

    public SearchEntry() {
    }

    public SearchEntry(String title, String domain, String link, String text, String wordStat) {
        this.title = title;
        this.domain = domain;
        this.link = link;
        this.text = text;
        this.wordStat = wordStat;
        aosRank = 0;
    }

    //getters and setters
    public void increaseRank(int add){
        this.aosRank += add;
    }

    public int getAosRank() {
        return aosRank;
    }

    public void setAosRank(int aosRank) {
        this.aosRank = aosRank;
    }

    public String getWordStat() {
        return wordStat;
    }

    public void setWordStat(String wordStat) {
        this.wordStat = wordStat;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
